package com.bootdo.common.excelread.service;


import com.bootdo.common.excelread.service.model.ColumnFieldMapper;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public interface ExcelRead {

    List<ArrayList<String>> readExcel(MultipartFile file) throws IOException;

    List<ArrayList<String>> readXlsx(MultipartFile file);

    List<ArrayList<String>> readXls(MultipartFile file);

    List<ArrayList<String>> readExcel(MultipartFile file, ColumnFieldMapper columnFieldMapper, Boolean isReadAllSheet) throws Exception;

    List<ArrayList<String>> readXlsx(MultipartFile file, ColumnFieldMapper columnFieldMapper, Boolean isReadAllSheet);

    List<ArrayList<String>> readXls(MultipartFile file, ColumnFieldMapper columnFieldMapper, Boolean isReadAllSheet);

}
